/* Copyright (c) 2011 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */
menu {
  -webkit-box-shadow: 0px 2px 4px rgba(0, 0, 0, .50);
  background: white;
  color: black;
  cursor: default;
  display: none;
  left: 0;
  margin: 0;
  outline: 1px solid rgba(0, 0, 0, 0.2);
  padding: 8px 0;
  position: fixed;
  white-space: nowrap;
  z-index: 3;
}
menu > * {
  box-sizing: border-box;
  display: block;
  margin: 0;
  width: 100%;
  text-align: start;
}
menu > :not(hr) {
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  font: inherit;
  line-height: 18px;
  overflow: hidden;
  padding: 0 19px;
  text-overflow: ellipsis;
}
menu > hr {
  background: -webkit-linear-gradient(left,
  rgba(0, 0, 0, .10),
  rgba(0, 0, 0, .02) 96%);
  border: 0;
  height: 1px;
  margin: 8px 0;
}
menu > [disabled] {
  color: rgba(0, 0, 0, .3);
}
/* Text alpha doesn't work on Linux/GTK and ChromeOs/views.
 * TODO(estade): http://crbug.com/88688. */
html[toolkit=gtk] menu > [disabled], html[os=chromeos] menu > [disabled] {
  color: #969696;
}
menu > [hidden] {
  display: none;
}
menu > :not(hr)[selected] {
  background-color: #dce5fa;
}
menu > :not(hr)[selected]:active {
  background-color: #426dc9;
  color: #fff;
}
menu > [checked]:before {
  content: url("");
  display: inline-block;
  height: 9px;
  margin: 0 5px;
  vertical-align: 50%;
  width: 9px;
}
menu > [checked] {
  -webkit-padding-start: 0;
}
menu > [selected][checked]:active:before {
  content: url("");
}
/* TODO(estade): handle overflow better? I tried overflow-x: hidden and
 overflow-y: visible (for the new dot animation), but this makes a scroll
 bar appear */
#dot-list {
  display: -webkit-box;
  height: 100%;
  list-style-type: none;
  margin: 0;
  padding: 0;
  /* Expand to take up all available horizontal space.  */
  -webkit-box-flex: 1;
  /* Center child dots. */
  -webkit-box-pack: center;
}
html.starting-up #dot-list {
  display: none;
}
.dot {
  box-sizing: border-box;
  cursor: pointer;
  max-width: 80px;
  outline: none;
  text-align: left;
  -webkit-box-flex: 1;
  -webkit-margin-end: 10px;
  -webkit-padding-start: 2px;
  -webkit-transition: max-width 0.25s, -webkit-margin-end 0.25s;
}
.dot:last-child {
  -webkit-margin-end: 0;
}
.dot.small {
  max-width: 0;
  -webkit-margin-end: 0;
}
.dot .selection-bar {
  border-bottom: 5px solid;
  border-color: rgba(0, 0, 0, 0.1);
  height: 10px;
  -webkit-transition: border-color 0.2s;
}
.dot input {
  background-color: transparent;
  cursor: inherit;
  /* TODO(estade): the font needs tweaking. */
  font-size: 8pt;
  font-weight: bold;
  padding-top: 0;
  width: 90%;
  -webkit-appearance: caret;
  -webkit-transition: color 0.2s;
}
.dot input:focus {
  cursor: auto;
}
/* Everything below here should be themed but we don't have appropriate colors
 * yet.
 */
.dot input {
  color: #b2b2b2;
}
.dot:focus input, .dot:hover input, .dot.selected input {
  color: #7f7f7f;
}
.dot:focus .selection-bar, .dot:hover .selection-bar, .dot.drag-target .selection-bar {
  border-color: #b2b2b2;
}
.dot.selected .selection-bar {
  border-color: #7f7f7f;
}
html {
  font-family: segoe ui, arial, helvetica, sans-serif;
  font-size: 14px;
  /* It's necessary to put this here instead of in body in order to get the
   background-size of 100% to work properly */
  height: 100%;
  overflow: hidden;
}
body {
  background-size: auto 100%;
  margin: 0;
  /* Don't highlight links when they're tapped.  Safari has bugs here that
   show up as flicker when dragging in some situations */
  -webkit-tap-highlight-color: transparent;
  /* Don't allow selecting text - can occur when dragging */
  -webkit-user-select: none;
}
/* [hidden] does display:none, but its priority is too low in some cases. */
[hidden] {
  display: none !important;
}
#card-slider-frame {
  /* Must match #footer height. */
  bottom: 50px;
  overflow: hidden;
  /* We want this to fill the window except for the region used
   by footer */
  position: fixed;
  top: 0;
  width: 100%;
}
#page-list {
  /* fill the apps-frame */
  height: 100%;
  display: -webkit-box;
}
/* For themes that right-align their images, we flip the attribution to the
 * left to avoid conflicts.  */
html[themegravity='right'] #attribution, html[dir='rtl'] #attribution {
  left: 0;
  right: auto;
  text-align: right;
}
#footer {
  background-image: -webkit-linear-gradient(
  rgba(242, 242, 242, 0.9), rgba(222, 222, 222, 0.9));
  bottom: 0;
  position: fixed;
  width: 100%;
  z-index: 5;
}
/* TODO(estade): remove this border hack and replace with a webkit-gradient
 * border-image on #footer once WebKit supports border-image-slice.
 * See https://bugs.webkit.org/show_bug.cgi?id=20127 */
#footer-border {
  height: 1px;
}
#footer-border {
  background: -webkit-linear-gradient(left, rgba(150, 150, 150, 0.2), /* COLOR_NTP_SECTION_BORDER */ rgba(150, 150, 150, 0.3) 20%, /* COLOR_NTP_SECTION_BORDER */ rgba(150, 150, 150, 0.3) 80%, /* COLOR_NTP_SECTION_BORDER */ rgba(150, 150, 150, 0.2));
}
#footer-content {
  display: -webkit-box;
  height: 49px;
  -webkit-box-align: center;
}
#footer-content > * {
  margin: 0 9px;
}
#logo-img {
  margin-top: 4px;
}
.starting-up * {
  -webkit-transition: none !important;
}

/* Trash. *********************************************************************/
/*
#trash {
  height: 100%;
  position: absolute;
  opacity: 0;
  right: 0;
  top: 50px;
  -webkit-transition: top 0.2s, opacity 0;
  -webkit-transition-delay: 0, 0.2s;
}
#footer.showing-trash-mode #trash {
  opacity: 1;
  top: 0;
  -webkit-transition-delay: 0, 0;
}
#trash > span {
  background-image: url("");
  background-position: 7px;
  background-repeat: no-repeat;
  border: 1px dashed #7f7f7f;
  border-radius: 4px;
  display: inline-block;
  font-size: 84%;
  padding-bottom: 9px;
  padding-top: 10px;
  position: relative;
  top: 7px;
  -webkit-padding-end: 7px;
  -webkit-padding-start: 30px;
}
*/

/* Page switcher buttons. *****************************************************/
.page-switcher {
  background-color: transparent;
  border: none;
  bottom: 0;
  font-size: 40px;
  padding: 0;
  position: absolute;
  margin: 0;
  max-width: 150px;
  min-width: 7.5%;
  top: 0;
  z-index: 5;
  color: rgba(0, 0, 0, 0.5);
  -webkit-transition: width 150ms, right 150ms, background-color 150ms;
}
.page-switcher:hover, .page-switcher.drag-target {
  background-color: rgba(0, 0, 0, 0.06);
  cursor: pointer;
}
html[dir=ltr] #page-switcher-start, html[dir=rtl] #page-switcher-end {
  border-top-right-radius: 10px;
}
html[dir=rtl] #page-switcher-start, html[dir=ltr] #page-switcher-end {
  border-top-left-radius: 10px;
}
#page-switcher-start {
  left: 0px;
  top: 0px;
  padding-bottom: 0px;
  border-top-right-radius: 10px;
}
#page-switcher-end {
  right: 0px;
  top: 0px;
  padding-bottom: 0px;
  border-top-left-radius: 10px;
}
#recently-closed-menu-button {
  background: none;
  border: 0;
  color: #7F7F7F;
  cursor: pointer;
  display: block;
  font-size: 9pt;
  font-weight: bold;
  /* The padding increases the clickable area. */
  padding-bottom: 8px;
  padding-top: 8px;
  -webkit-appearance: none;
  -webkit-transition: opacity 0.2s;
  -webkit-transition-delay: 0.1s;
}
/* Reserve space for the menu button even when it's hidden. */
#recently-closed-menu-button.invisible, #footer.showing-trash-mode #recently-closed-menu-button {
  visibility: hidden;
}
#footer.showing-trash-mode #recently-closed-menu-button {
  opacity: 0;
  -webkit-transition-delay: 0;
}
.recent-menu {
  padding: 6px 8px;
  /* Needs to be above #footer. */
  z-index: 10;
  display: none;
  top: auto;
  left: auto;
  bottom: 40px;
  right: 9px;
}
.recent-menu-item {
  background: no-repeat 0% 50%;
  background-color: transparent !important;
  background-size: 16px 16px;
  box-sizing: border-box;
  display: block;
  font-size: 100%;
  line-height: 20px;
  margin: 8px;
  max-width: 450px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-margin-start: 0;
  -webkit-padding-end: 0;
  -webkit-padding-start: 22px;
}
.recent-menu-item:not(:hover) {
  text-decoration: none;
}
.recent-menu-item:first-of-type {
  margin-top: 4px;
}
.recent-menu-item:last-of-type {
  margin-bottom: 4px;
}
html[dir='rtl'] .recent-menu-item {
  background: no-repeat 100% 50%;
}
.recent-window {
  background-image: url("");
}
/* TODO(estade): find a better color for active. */
.recent-menu-item:active, .recent-menu-item:visited, .recent-menu-item:link {
  color: hsl(213, 90%, 24%) !important;
}
.disclosure-triangle {
  background-color: #7F7F7F;
  display: inline-block;
  height: 9px;
  width: 9px;
  -webkit-mask-image: url("");
}
/** Scrollbars ****************************************************************/
.tile-page-content::-webkit-scrollbar {
  width: 13px;
}
.tile-page-content::-webkit-scrollbar-button {
  display: none;
}